package 刷题10月.位运算;
// https://leetcode-cn.com/problems/sum-of-two-integers/
public class 位运算371两整数之和0930 {
    class Solution {
        public int getSum(int a, int b) {
            while(b!=0){
                int carry=(a&b)<<1;
                a=a^b;
                b=carry;
            }
            return a;
        }

    }
}
